<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<head></head>
<body>
	<composite:interface>
		<composite:attribute name="beanToUse" />
		<composite:attribute name="searchIdField"/>
		<composite:attribute name="componentsToUpdate" />
	</composite:interface>

	<composite:implementation>
		<h:form>
			<p:inputText id="#{cc.attrs.searchIdField}" value="#{cc.attrs.beanToUse.searchTerm}" />
			<p:commandButton value="Search"
				action="#{cc.attrs.beanToUse.search()}" ajax="true"
				update="#{cc.attrs.componentsToUpdate}" />
			<p:commandButton value="Reset"
				action="#{cc.attrs.beanToUse.resetSearch()}" ajax="true"
				update="#{cc.attrs.componentsToUpdate}" />
		</h:form>
	</composite:implementation>
</body>
</html>